package com.webshop.JavaBean;

/**
 * CREATE TABLE `shopcar`  (
 `ID` int(20) NOT NULL AUTO_INCREMENT,
 `userName` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
 `goodsName` int(50) NOT NULL,
 `nums` int(20) NOT NULL,
 `pic` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
 `price` decimal(20, 2) NOT NULL,
 `goodsAttrID` int(20) NOT NULL,
 `goodsAttr` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
 PRIMARY KEY (`ID`) USING BTREE
 ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

 */
public class Shopcar {
    int ID;
    String userName;
    String goodsName;
    int nums;
    String pic;
    double price;
    int goodsAttrID;
    String goodsAttr;

    public Shopcar(){}


    public Shopcar(String userName, String goodsName, int nums, String pic, double price, int goodsAttrID, String goodsAttr) {
        this.userName = userName;
        this.goodsName = goodsName;
        this.nums = nums;
        this.pic = pic;
        this.price = price;
        this.goodsAttrID = goodsAttrID;
        this.goodsAttr = goodsAttr;
    }

    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public int getNums() {
        return nums;
    }

    public void setNums(int nums) {
        this.nums = nums;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getGoodsAttrID() {
        return goodsAttrID;
    }

    public void setGoodsAttrID(int goodsAttrID) {
        this.goodsAttrID = goodsAttrID;
    }

    public String getGoodsAttr() {
        return goodsAttr;
    }

    public void setGoodsAttr(String goodsAttr) {
        this.goodsAttr = goodsAttr;
    }



}
